package com.it.blog.service.impl;

import com.it.blog.dao.BackAdminDao;
import com.it.blog.entity.Admin;
import com.it.blog.entity.Article;
import com.it.blog.entity.ArticleLable;
import com.it.blog.entity.ArticleType;
import com.it.blog.service.BackAdminService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @Author: 羡羡
 * @Date: 2022/02/24/10:15
 */
@Service
public class BackAdminServiceImpl implements BackAdminService {
    @Autowired
    BackAdminDao backdao;
    @Override
    public Admin loginad(Admin adm) {
        Admin admin=backdao.loginad(adm);
        return admin;
    }

    @Override
    public List alltype() {
        List lis=backdao.alltype();
        return lis;
    }

    @Override
    public List adsearch(String articletitle, int articletypeid) {
        List lis=backdao.adsearch(articletitle, articletypeid);
        return lis;
    }

    @Override
    public int delblog(int blid) {
        int dein=backdao.delblog(blid);
        return dein;
    }

    @Override
    public List alable() {
        List lis=backdao.alable();
        return lis;
    }

    @Override
    public int addblog(Article ar) {
        int adsu=backdao.addblog(ar);
        return adsu;
    }

    @Override
    public List admllblog() {
        List lis=backdao.admllblog();
        return lis;
    }

    @Override
    public Article findadblog(int blogid) {
        Article ar=backdao.findadblog(blogid);
        return ar;
    }

    @Override
    public int uparticle(Article ar) {
        int upsu=backdao.uparticle(ar);
        return upsu;
    }

    @Override
    public List adallabl() {
       List lis= backdao.adallabl();
        return lis;
    }

    @Override
    public List dseblog(int bloglabid) {
        List lis=backdao.dseblog(bloglabid);
        return lis;
    }

    @Override
    public int detagle(int tagid) {
        int desu=backdao.detagle(tagid);
        return desu;
    }

    @Override
    public ArticleLable findtag(int tagid) {
        ArticleLable ar=backdao.findtag(tagid);
        return ar;
    }

    @Override
    public int adtage(ArticleLable arla) {
        int adsu=backdao.adtage(arla);
        return adsu;
    }

    @Override
    public int uptag(ArticleLable arta) {
        int upsu=backdao.uptag(arta);
        return upsu;
    }

    @Override
    public List altype() {
        List lis=backdao.altype();
        return lis;
    }

    @Override
    public List findtype(int blogtyid) {
        List lis=backdao.findtype(blogtyid);
        return lis;
    }

    @Override
    public int detype(int typeid) {
        int det=backdao.detype(typeid);
        return det;
    }

    @Override
    public ArticleType typeinfo(int typeid) {
        ArticleType arty=backdao.typeinfo(typeid);
        return arty;
    }

    @Override
    public int addtype(ArticleType arty) {
        int insu=backdao.addtype(arty);
        return insu;
    }

    @Override
    public int uptype(ArticleType arty) {
        int upsu=backdao.uptype(arty);
        return upsu;
    }


}
